(function(a, b) {
	a.fn.ace_tree = function(d) {
		var c = {
			"open-icon" : "glyphicon glyphicon-folder-open",
			"close-icon" : "glyphicon glyphicon-folder-close",
			selectable : true,
			"selected-icon" : "glyphicon glyphicon-ok",
			"unselected-icon" : "tree-dot"
		};
		c = a.extend({}, c, d);
		this.each(function() {
			var e = a(this);
			e.html('<div class = "tree-folder" style="display:none;">				<div class="tree-folder-header">					<span class="' + c["close-icon"] 
			+ '"></span>					<div class="tree-folder-name"></div>				</div>				<div class="tree-folder-content"></div>				<div class="tree-loader" style="display:none"></div>			</div>			<div class="tree-item" style="display:none;">				' 
			+ (c["unselected-icon"] == null ? "" : '<span class="' + c["unselected-icon"] + '"></span>') 
			+ '				<div class="tree-item-name"></div>			</div>');
			
			e.addClass(c.selectable == true ? "tree-selectable" : "tree-unselectable");
			e.tree(c);
		});
		return this;
	};
})(window.jQuery); 